#! /bin/bash

if [ ! $# -eq 1 ];then
	echo "please enter one number"
	exit
fi

i=1
sum=0
while [ $i -le $1 ]
do
	let sum+=i
	let i++
done

echo $sum
